package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class UiController implements Controller {

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		System.out.println("controller.....");
		String uname=request.getParameter("uname");
		request.setAttribute("uname", uname);
		ModelAndView mv=new ModelAndView("index");
		mv.addObject("uname1", "uname1....");
		return mv;
	}

}
